// TOWN DIALOGUE SCRIPT
//    Town 109: Vahnatai Home

begintalkscript;

variables;

short i,j,k,r1,choice;

// Bon-Ihrno

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 1;
	question = "Bon-Ihrno";
	text1 = "An old vahnatai sits slumped on his stool, leaning against the stone table. He looks very tired. _I am Bon-Ihrno,_ he rasps.";
	text2 = "Bon-Ihrno is a hero and figure of legend. During the devastating Empire invasion of Avernum, it was he who first contacted humanity. He guided the first human visitors to vahnatai lands during the Empire wars.";
	text3 = "Now that Rentar-Ihrno has waged war on humanity, all he has struggled for has fallen apart. _Greetings to you, human. This is a place of peace. The last one, I think._";
	text5 = "Bon-Ihrno, hero and figure of legend, sits slumped on his stool. He looks very tired. It is sad to see what this famed figure has been reduced to.";
	action = INTRO;

begintalknode;
	state = 1;
	nextstate = -1;
	condition = gf(109,12) == 0;
	question = "_Greetings, Bon-Ihrno._";
	text1 = "He sighs. _Greetings to you. You have come far and faced many dangers to stand here. I hope now you will join in the fight against the insanity. Joyously, my battle against Rentar-Ihrno is almost over._";
	action = SET_SDF 109 12 1;

begintalknode;
	state = 1;
	nextstate = -1;
	condition = gf(109,12) >= 1;
	question = "_Why do you live in this remote place?_";
	text1 = "_I am old and tired. The side I have chosen is a small and losing one, and my foes are too many. Too strong. Also, I have been assisting you. Soon, there will be a finish. There is always a finish._";

begintalknode;
	state = 1;
	nextstate = 2;
	condition = gf(109,12) >= 1;
	question = "_You said that your battle is almost over. What did you mean?_";
	text1 = "_I wish not to talk of that. Instead, let us speak of the insanity that has consumed my people. Let us speak of ending the monster plagues._";

begintalknode;
	state = 2;
	nextstate = 4;
	question = "_Can you help me fight the vahnatai causing the plagues?_";
	text1 = "He slumps further in his seat. _I wish to assist you in your assault on Rentar-Ihrno and her minions. I wish it was not necessary to turn against my people. But I must. This revenge madness has consumed them._";

begintalknode;
	state = 4;
	nextstate = 5;
	question = "_What has fueled their desire for revenge?_";
	text1 = "_The Empire stole three of our Crystal Souls, our leaders, our Gods, the most beloved of us all. I cannot express what a horrid shock this was to us. In the thousands and thousands of years of our recorded history, no such thing had ever happened._";
	text2 = "_That theft led to all this warfare._";

begintalknode;
	state = 5;
	nextstate = -1;
	question = "_Surely the Empire has been punished enough._";
	text1 = "_No. I do not think so. But this slaughter of innocents is the wrong way to make the Empire atone._";
	text2 = "_Some of the Empire committed a grievous crime against us. Those people paid with their lives._ He shakes his head. _Why then must the entire surface be destroyed? It makes no sense._";

begintalknode;
	state = 5;
	nextstate = 6;
	question = "_What do the vahnatai leaders hope to accomplish?_";
	text1 = "_Our leaders have convinced themselves that destroying the thieves, the Empire, will make them safe. They are wrong, of course. Nothing can do that. And the war will only ravage this world and cause millions of needless deaths._";
	text2 = "_And that, brave humans, is why I must assist you._";

begintalknode;
	state = 6;
	nextstate = 7;
	question = "_How can you help?_";
	text1 = "_I have been trying to project myself to you for months, to give you advice and aid. Here, in my humble hut, you can find supplies and rest. More importantly, I have the most vital information to give you._";

begintalknode;
	state = 7;
	nextstate = 8;
	question = "_What information can you provide?_";
	text1 = "_Rentar-Ihrno's fortress is to the southeast. It is where she performs her mighty alchemy to make the monsters. Her rituals are powerful and delicate._";

begintalknode;
	state = 8;
	nextstate = 9;
	question = "_The monsters are made near here?_";
	text1 = "_Not quite. The monsters, once made, breed and expand on their own. The fort is where Rentar-Ihrno molds new monsters, the successors to the slimes and roaches and golems and troglos and giants and beasts._ ";
	text2 = "_She makes them, using powerful alchemy and machinery. If not stopped, the spawn of her talents will double and redouble the carnage caused so far._";

begintalknode;
	state = 9;
	nextstate = 10;
	question = "_Can you describe how she makes new creatures?_";
	text1 = "_She has four vats of magical, powerful liquid stored under her tower. Four beams of magical energy are directed into the vats. Then the liquids are poured into the main vat through many pipes. The stuff passes through the beams and is transformed._";
	text2 = "_It is magic of power beyond my comprehension. However, it has a weakness._";

begintalknode;
	state = 10;
	nextstate = 11;
	question = "_What's the weakness?_";
	text1 = "_The four beams have different levels of energy and qualities. When one, two, or three of them are trained onto the fluid, it can be shaped. Four, however, is too much._";
	text2 = "_If all four beams reach the center, and the magical machines which disperse the liquid and make life are activated, the explosion will destroy her fortress! This is something you could do. Alas, there is a problem._";

begintalknode;
	state = 11;
	nextstate = 12;
	question = "_What is the problem?_";
	text1 = "_Once the beams are directed into the vat, the controls to activate the magic are is Rentar-Ihrno's workshop. To reach it, you will have to elude her._";

begintalknode;
	state = 12;
	nextstate = 13;
	question = "_How can we elude the greatest vahnatai mage?_";
	text1 = "He looks concerned. _I'm afraid that will be your problem. I cannot help with that. I wish you the best of luck in your assault. And, if you like, there are rest and supplies for you here._";

begintalknode;
	state = 13;
	nextstate = -1;
	question = "_Thanks for your offer of rest._";
	text1 = "_I have set up a room where you can sleep safely. There is also a supply room, where you can get useful potions. Were I not forced to be here in secret, I could help more._";

begintalknode;
	state = 1;
	nextstate = 16;
	condition = gf(109,12) >= 1;
	question = "_Tell me about Rentar-Ihrno._";
	text1 = "_Rentar-Ihrno is our greatest mage. She is our most powerful mage in the last millennium. Her skills were what defeated the Empire in their war with you. The monsters were her creation._";
	text2 = "_Her mind has departed her._";

begintalknode;
	state = 16;
	nextstate = 17;
	question = "_Is Rentar insane?_";
	text1 = "_Not quite. She is like your archmage Erika. Hatred of the Empire consumes her, to the exclusion of all else. I respect her. I respect her skills. But the revenge madness has made her a danger, and she must be stopped._";
	text2 = "_It is a clear truth, and saying it makes my kind despised._";
	
begintalknode;
	state = 17;
	nextstate = -1;
	question = "_Why are you so despised?_";
	text1 = "He looks incredibly sad. _My people wish nothing to do with one who will not join in their revenge madness. I hide here, and oppose them. It is just a part of the misery that has become my life._";

begintalknode;
	state = 17;
	nextstate = -1;
	question = "_You also know Erika?_";
	text1 = "_Another female suffused with power and consumed by hate. These two titans of magic fill me with fear._";

begintalknode;
	state = 1;
	nextstate = 18;
	condition = gf(109,12) >= 1;
	question = "_Are you really the first vahnatai to contact the humans?_";
	text1 = "_No. That honor belongs to the first vahnatai murdered by the Empire. But I was the first to greet your people with the offer of peace._";

begintalknode;
	state = 18;
	nextstate = 19;
	question = "_Tell me about it?_";
	text1 = "_When our people attacked yours, thinking you had stolen our Crystal Souls, I alone wanted to deal with you. So I sent a projection to one of your cities, asking you to send an envoy. Fortunately, you did._";

begintalknode;
	state = 19;
	nextstate = 20;
	question = "_Who went?_";
	text1 = "_A small band of adventurers, incredibly brave and resourceful. They traveled through deadly, unexplored caves to reach me. They negotiated with Rentar-Ihrno and our council. And thus, we became friends. For a short time._";

begintalknode;
	state = 20;
	nextstate = -1;
	question = "_What happened to the adventurers?_";
	text1 = "_I do not know. I believe they are still in Avernum, helping to protect it from danger. Whatever their path is, I am sure it is noble, dangerous, and lined with treasure._";

